home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1997-02-03 | 2.2 KB | 70 lines |
- 10 'PIPESIZE - Standard Pipe Sizes - 03 FEB 97 rev.
- 20 IF EX$=""THEN EX$="EXIT"
- 30 CLS:KEY OFF
- 40 COLOR 7,0,1
- 50 UL$=STRING$(80,205)
- 60 U$="###.###"+CHR$(34)
- 70 V$="####.##"+" cm"
- 80 DIM D$(19,2)
- 90 '
- 100 COLOR 15,2
- 110 PRINT " PIPE SIZES (ANSI Standard)";
- 120 PRINT TAB(57);"by George Murphy VE3ERP ";
- 130 COLOR 1,0:PRINT STRING$(80,223);
- 140 COLOR 7,0
- 150 DATA 1/8,1/4,3/8,1/2,3/4,1,1DEFSTR,1RENUM,2,2RENUM,3,3RENUM,4,5,6,8,10
- 160 DATA .405,.540,.675,.84,1.05,1.315,1.66,1.9,2.375,2.875
- 170 DATA 3.5,4,4.5,5.563,6.625,8.625,10.75
- 180 FOR Z=1 TO 17:READ D$(Z,1):NEXT Z
- 190 FOR Z=1 TO 17:READ D$(Z,2):NEXT Z
- 200 COLOR 0,7:LOCATE ,12
- 210 PRINT " STANDARD SIZES of WROUGHT IRON, COPPER and PLASTIC PIPE "
- 220 COLOR 7,0:PRINT STRING$(80,205);
- 230 LOCATE CSRLIN-1,32:PRINT "FN"
- 240 PRINT " Nom. Size";TAB(14);"Outside Diameter CALL"
- 250 PRINT STRING$(31,205);"<0xB5!>"
- 260 FOR Z=1 TO 17:PRINT TAB(4)D$(Z,1);CHR$(34);
- 270 X=VAL(D$(Z,2))
- 280 PRINT TAB(11)USING U$;X;
- 290 PRINT TAB(21)USING V$;X*2.54;
- 300 PRINT " CALL"
- 310 NEXT Z
- 320 '
- 330 T=34:LOCATE 5,12
- 340 LOCATE ,T:PRINT "The word 'pipe' as distinguished from 'tube'"
- 350 LOCATE ,T:PRINT "is used to apply to tubular products of"
- 360 LOCATE ,T:PRINT "dimensions commonly used for pipelines and"
- 370 LOCATE ,T:PRINT "piping systems. Pipe outside diameters are"
- 380 LOCATE ,T:PRINT "larger than corresponding nominal sizes"
- 390 LOCATE ,T:PRINT "whereas outside diameters of tubes are"
- 400 LOCATE ,T:PRINT "identical to nominal sizes."
- 410 PRINT
- 420 LOCATE ,T:PRINT "The size of all pipe is identified by the"
- 430 LOCATE ,T:PRINT "nominal pipe size, and is based on a standard"
- 440 LOCATE ,T:PRINT "outside diameter. This OD was originally"
- 450 LOCATE ,T:PRINT "selected so that pipe with a standard OD and"
- 460 LOCATE ,T:PRINT "having a wall thickness typical of the period"
- 470 LOCATE ,T:PRINT "would have an inside diameter approximately"
- 480 LOCATE ,T:PRINT "equal to the nominal size. Although there is"
- 490 LOCATE ,T:PRINT "now no such relation between existing standard"
- 500 LOCATE ,T:PRINT "thicknesses, OD's and nominal sizes, these"
- 510 LOCATE ,T:PRINT "nominal sizes and OD's continue in use as"
- 520 LOCATE ,T:PRINT CHR$(34);"standard";CHR$(34);"."
- 530 LOCATE 24,9:COLOR 0,7
- 540 PRINT " (Machinery's Handbook, Revised 21st Edition, pages 2323-2324) ";
- 550 COLOR 7,0:GOSUB 570:RUN EX$
- 560 '
- 570 'HARDCOPY
- 580 GOSUB 690:LOCATE 25,2:COLOR 14,6
- 590 PRINT " Press 1 to print screen, 2 to print screen & ";
- 600 PRINT "advance paper, or 3 to continue.";:COLOR 7,0
- 610 Z$=INKEY$:IF Z$="3"THEN GOSUB 690:RETURN
- 620 IF Z$="1"OR Z$="2"THEN GOSUB 690:GOTO 640
- 630 GOTO 610
- 640 FOR QX=1 TO 24:FOR QY=1 TO 80
- 650 LPRINT CHR$(SCREEN(QX,QY));
- 660 NEXT QY:NEXT QX
- 670 IF Z$="2"THEN LPRINT CHR$(12)
- 680 GOTO 580
- 690 LOCATE 25,1:PRINT STRING$(80,32);:RETURN
-